$(document).ready(function () {  

$('#submit').click(function () {
	var email = $('[name=email]').val();
	if(email.match(/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/)){
	$.ajax({
            type: 'POST',
            url: '/cine-mtl/requestReset',
            data:'email='+email,
            success: function () {
            	$('#notifyError').hide();
            	$('#formReset').hide();
            	$('#notify').show();
            },
            error: function (data) {
                console.log('not logout');
            }
        });
	}else{
		$('#notifyError').show();
	}
	return false;
    });

});